home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2964 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  704 b 

  1. Path: nntp.earthlink.net!usenet
  2. From: macc@earthlink.net (OB1)
  3. Newsgroups: comp.lang.c++
  4. Subject: HELP!!! - loop control problems
  5. Date: Sun, 21 Jan 1996 00:24:59 GMT
  6. Organization: O.B. Productions
  7. Message-ID: <4ds174$6t0@bolivia.it.earthlink.net>
  8. NNTP-Posting-Host: 206.43.157.143
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. I have the following code in a program I'm writing:
  12.  
  13. const long SCREEN_SIZE = 320 * 200;
  14. long count = 0;
  15. while (count <= SCREEN_SIZE)
  16. {
  17.     ... code (count gets incremented)
  18. }
  19.  
  20. When I trace through my program, I find that the loop end condition is
  21. always true and the code inside the loop is never run. I looking for
  22. any ideas on why this doesn't work.
  23.  
  24. Thanks,
  25. OB1
  26.  
  27. macc@earthlink.net
  28.  
  29.